package com.hyphenate.easeui.model;

import java.io.Serializable;

/**
 * 用户的实体
 *
 * @author 陈坤彬
 *
 */

public class UserBean implements Serializable {

	private static final long serialVersionUID = 1497935616093492911L;

	public UserBean(String id) {
		this.id = id;
	}

	public UserBean() {
		id = "";
		gzno = "";
		nick = "";
		birth = "";
		phone = "";
		imid = "";
		psw = "";
		logo = "";
		hdLogo = "";
		alias = "";
		school = "";
		company = "";
		hobby = "";
		job = "";
		sex = 0;
		age = 0;
		province = 0;
		city = 0;
		district = 0;
		liked = false;
		like = 0l;
		intro = "";
		token = "";
		userauth="-1";
		rowId=0;
		interactState=0;
	}
	private int interactState; //0：未关注 3：相互关注 10：已关注
	private int rowId=0;
	private String userauth="-1";
	private String id = "";
	private String gzno = "";
	private Integer province = 0;
	private Integer city = 0;
	private Integer district = 0;
	private String nick = "";
	private String birth = "";
	private String phone = "";
	private Integer sex = 0;
	private String imid = "";
	private String psw = "";
	private String logo = "";
	private String hdLogo = "";
	private String alias = "";
	private String school = "";
	private String company = "";
	private String hobby = "";
	private String job = "";
	private Boolean liked;
	private Long like = 0l;
	private Integer width = 0;
	private Integer height = 0;
	private Integer age = 0;
	private String cityName = "";
	// 标签
	private String tags = "";
	private String intro = "";
	private String postsAlbumNum = "";
	private String activeTime = "12";
	private String loveGame = "";
	private String gameServer = "";
	private String gameNick = "";
	private String gameLevel = "";
	private String authentication = "";
	private String postsCount = "0";
	private UserAuth userAuth;
	private String msgType="0";
	private String enable="1";
	private String integral="0";
	private String level="0";



	private String newPwd = "";
	private String oldPwd = "";
	private String token = "";
	private String visible = "1";
	private String state = "";
	private String device = "";
	private String model = "";
	private String version = "";


	public String getVisible() {
		return visible;
	}

	public void setVisible(String visible) {
		this.visible = visible;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getDevice() {
		return device;
	}

	public void setDevice(String device) {
		this.device = device;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getOldPwd() {
		return oldPwd;
	}

	public void setOldPwd(String oldPwd) {
		this.oldPwd = oldPwd;
	}
	public String getNewPwd() {
		return newPwd;
	}

	public void setNewPwd(String newPwd) {
		this.newPwd = newPwd;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public int getInteractState() {
		return interactState;
	}

	public void setInteractState(int interactState) {
		this.interactState = interactState;
	}

	public int getRowId() {
		return rowId;
	}

	public void setRowId(int rowId) {
		this.rowId = rowId;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getPostsCount() {
		return postsCount;
	}

	public void setPostsCount(String postsCount) {
		this.postsCount = postsCount;
	}

	private boolean subscribe;

	public String getAuthentication() {
		return authentication;
	}

	public void setAuthentication(String authentication) {
		this.authentication = authentication;
	}

	public boolean isSubscribe() {
		return subscribe;
	}

	public void setSubscribe(boolean subscribe) {
		this.subscribe = subscribe;
	}

	public String getLoveGame() {
		return loveGame;
	}

	public void setLoveGame(String loveGame) {
		this.loveGame = loveGame;
	}

	public String getGameServer() {
		return gameServer;
	}

	public void setGameServer(String gameServer) {
		this.gameServer = gameServer;
	}

	public String getGameNick() {
		return gameNick;
	}

	public void setGameNick(String gameNick) {
		this.gameNick = gameNick;
	}

	public String getGameLevel() {
		return gameLevel;
	}

	public void setGameLevel(String gameLevel) {
		this.gameLevel = gameLevel;
	}

	public String getActiveTime() {
		return activeTime;
	}

	public void setActiveTime(String activeTime) {
		this.activeTime = activeTime;
	}

	public String getPostsAlbumNum() {
		return postsAlbumNum;
	}

	public void setPostsAlbumNum(String postsAlbumNum) {
		this.postsAlbumNum = postsAlbumNum;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGzno() {
		return gzno == null ? "" : gzno;
	}

	public void setGzno(String gzno) {
		this.gzno = gzno;
	}

	public Integer getProvince() {
		return province;
	}

	public void setProvince(Integer province) {
		this.province = province;
	}

	public Integer getCity() {
		return city;
	}

	public void setCity(Integer city) {
		this.city = city;
	}

	public String getNick() {

		return nick == null ? "" : nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getBirth() {
		return birth == null ? "" : birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}

	public String getPhone() {
		return phone == null ? "" : phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getImid() {
		return imid == null ? "" : imid;
	}

	public void setImid(String imid) {
		this.imid = imid;
	}

	public String getPsw() {
		return psw == null ? "" : psw;
	}

	public void setPsw(String psw) {
		this.psw = psw;
	}

	public String getLogo() {
		return logo == null ? "" : logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getUsername() {
		return alias == null ? "" : alias;
	}

	//获取用户名，别名不为空则获取别名
	public String getAliasNick(){
		if(alias==null)
			return nick == null ? "" : nick;
		else{
			return alias == null ? "" : alias;
		}

	}

	public void setUsername(String username) {
		this.alias = username;
	}

	public Integer getDistrict() {
		return district;
	}

	public void setDistrict(Integer district) {
		this.district = district;
	}

	public String getSchool() {
		return school == null ? "" : school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getCompany() {
		return company == null ? "" : company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getHobby() {
		return hobby == null ? "" : hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}

	public String getJob() {
		return job == null ? "" : job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getHdLogo() {
		return logo == null ? "" : logo;
	}

	public void setHdLogo(String hdLogo) {
		this.logo = hdLogo;
	}

	public Boolean getLiked() {
		return liked;
	}

	public void setLiked(Boolean liked) {
		this.liked = liked;
	}

	public Long getLike() {
		return like;
	}

	public void setLike(Long like) {
		this.like = like;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	@Override
	public boolean equals(Object o) {

		return imid.equals(((UserBean) o).getImid());
	}

	public UserAuth getUserAuth() {
		if(null==userAuth)
			userAuth=new UserAuth();
		return userAuth;
	}

	public String getUserauth() {
		if(null!=userAuth){
			userauth=userAuth.getType();
		}
		return userauth;
	}

	public void setUserauth(String userauth) {
		this.userauth = userauth;
	}

	public void setUserAuth(UserAuth userAuth) {
		this.userAuth = userAuth;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
}
